From 3b6fd9ffbdd3d301c5e36ee79ac712ce491674e7 Mon Sep 17 00:00:00 2001 From: PegoraroF10 Date: Mon, 11 May 2026 11:58:28 -0300 Subject: [PATCH] Added to DOC jsonb functions to their equivalent operators --- doc/src/sgml/func/func-json.sgml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/src/sgml/func/func-json.sgml b/doc/src/sgml/func/func-json.sgml index 3d97e2b5375..ffe81b70a2c 100644 --- a/doc/src/sgml/func/func-json.sgml +++ b/doc/src/sgml/func/func-json.sgml @@ -275,6 +275,9 @@ Does the first JSON value contain the second? (See for details about containment.) + + Equivalent to the jsonb_contains() function. + '{"a":1, "b":2}'::jsonb @> '{"b":2}'::jsonb t @@ -289,6 +292,9 @@ Is the first JSON value contained in the second? + + Equivalent to the jsonb_contained() function. + '{"b":2}'::jsonb <@ '{"a":1, "b":2}'::jsonb t @@ -304,6 +310,9 @@ Does the text string exist as a top-level key or array element within the JSON value? + + Equivalent to the jsonb_exists() function. + '{"a":1, "b":2}'::jsonb ? 'b' t @@ -323,6 +332,9 @@ Do any of the strings in the text array exist as top-level keys or array elements? + + Equivalent to the jsonb_exists_any() function. + '{"a":1, "b":2, "c":3}'::jsonb ?| array['b', 'd'] t @@ -338,6 +350,9 @@ Do all of the strings in the text array exist as top-level keys or array elements? + + Equivalent to the jsonb_exists_all() function. + '["a", "b", "c"]'::jsonb ?& array['a', 'b'] t @@ -360,6 +375,9 @@ Does not operate recursively: only the top-level array or object structure is merged. + + Equivalent to the jsonb_concat() function. + '["a", "b"]'::jsonb || '["a", "d"]'::jsonb ["a", "b", "a", "d"] @@ -395,6 +413,9 @@ Deletes a key (and its value) from a JSON object, or matching string value(s) from a JSON array. + + Equivalent to the jsonb_delete() function. + '{"a": "b", "c": "d"}'::jsonb - 'a' {"c": "d"} @@ -444,6 +465,9 @@ Deletes the field or array element at the specified path, where path elements can be either field keys or array indexes. + + Equivalent to the jsonb_delete_path() function. + '["a", {"b":1}]'::jsonb #- '{1,b}' ["a", {}] -- 2.51.2.windows.1